package work.chenbo.springboot.mongo.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import springfox.documentation.annotations.ApiIgnore;

import java.io.Serializable;

/**
 * @author ChenBo
 * @className User
 * @date 2020/11/20
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 5854781514543191035L;
    @Id
    @ApiModelProperty("用户ID")
    private Integer id;

    @ApiModelProperty("用户名称")
    private String username;

    @ApiModelProperty("用户手机")
    private String phone;

    @ApiModelProperty("用户密码")
    private String password;

    @ApiModelProperty("用户邮箱")
    private String email;

    private Integer delFlag;
}
